<div class="section">
    <div class="main-p-t-20">
        <div class="addon-select ">
            <div class="addon-sort">
                <li>
                    <a href="{:url('formwork/index',['order'=>'default'])}" 
                        class="{$order == 'default'?'am-btn am-btn-primary':''} am-round am-btn-xs">
                    默认排序</a>
                </li>
                <li>
                    <a href="{:url('formwork/index',['order'=>'sale'])}" 
                        class="{$order == 'sale'?'am-btn am-btn-primary':''} am-round am-btn-xs">
                    按购买次数</a>
                </li>
                <li>
                    <a href="{:url('formwork/index',['order'=>'createtime'])}" 
                        class="{$order == 'createtime'?'am-btn am-btn-primary':''} am-round am-btn-xs">
                    按发布时间</a>
                </li>
                <li>
                    <a href="{:url('formwork/index',['order'=>'updatetime'])}" 
                        class="{$order == 'updatetime'?'am-btn am-btn-primary':''} am-round am-btn-xs">
                    按更新时间</a>
                </li>
            </div>
        </div>
    </div>
    <div class="main-p-20">
        {foreach $list as $item}
        <div class="formwork-list">
            <a href="{:url('formwork/detail',['id'=>$item.id])}" target="_blank">
            <div class="box">
                <img src="{$item.image}">
                <div class="title">{$item.title}</div>
                <div class="text">
                    <i class="am-icon-shopping-cart"></i> {$item.sale}
                    <div class="price">
                        <span>{$item.line_single_price > 0 ?'￥' .$item.line_single_price : ''}</span>￥{$item.single_price}
                    </div>
                </div>
            </div>
            </a>
        </div>
        {/foreach}
    </div>
</div>
<script type="text/javascript">
$(function(){
    $('.formwork-list').mouseover(function(){
         $(this).find('.box').stop().animate({'top':'-8px'});
         $(this).find('.box').addClass('hotshadow');
    });
    $('.formwork-list').mouseout(function(){
         $(this).find('.box').stop().animate({'top':'0'});
         $(this).find('.box').removeClass('hotshadow');
    });
});
</script>